#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include z_mod\utility;


init()
{
    level thread onPlayerConnected();
}

onPlayerConnected()
{
    for(;;) {
        level waittill("connected", player);
        
        // player vars
        
        // player client dvars
        
        // player threads
        player thread onPlayerSpawned();
        
        // player functions (e.g. notifyOnPlayerCommand())
    }
}

onPlayerSpawned()
{
    self endon("disconnect");
    
    for(;;) {
        self waittill("spawned_player");
        // smth...
    }
}

